package com.aeye.mbr.common.base.constants;

public enum BioType {
	FACE(11,"人脸"),FINGERVEIN(12,"指静脉"),FINGERPRINT(15,"指纹");
	private BioType(int code,String name){
		this.code = code;
		this.name = name;
	}
	
	int code;
	String name;
	public int getCode() {
		return code;
	}
	public String getName() {
		return name;
	}
	
	public static BioType valueOfCode(int code)
	{
		for(BioType type: BioType.values())
		{
			if(code == type.getCode())
			{
				return type;
			}
		}
		return null;
	}
	
}
